package com.codedancer.campus.client.api.user.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel(value = "用户手动注册Ro")
public class UserManualRegisterRo {

    @ApiModelProperty("用户昵称")
    @Length(min = 2, max = 8, message = "昵称长度在2-8位")
    private String userNickName;

    @ApiModelProperty("密码")
    @NotEmpty(message = "请输入密码")
    @Length(min = 6,max = 12,message = "密码在6-12位之间")
    private String password;

    @ApiModelProperty("确认密码")
    @NotEmpty(message = "请输入确认密码")
    @Length(min = 6,max = 12,message = "确认密码在6-12位之间")
    private String rePassword;
}
